/************************* 版权声明 *********************************
 * 
 * 版权所有：meymey
 * 
 ************************* 版本声明 *********************************
 *@since jdk1.5
 *@version 0.6
 ************************* 变更记录 *********************************
 *
 * 创建者：biqiang Email:biqiang@winmess.com   创建日期：2010-10-15
 * 创建记录：创建类结构。
 *
 ************************* 类描述 *********************************×
 *空间访问记录
 ************************* To  Do *********************************
 *
 ************************* 随   笔 ***********************************
 *
 ******************************************************************
 */
package com.realgodo.site.entity.space;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.realgodo.site.entity.IdEntity;

@Entity
@Table(name = "space_visit")
public class SpaceVisit extends IdEntity {
	private static final long serialVersionUID = -2163158150017286991L;

	/** 被访问者空间Id Space.id */
	private Long spaceId;

	/** 访问者空间Id Space.id */
	private Long visitId;

	/** 访问者头像 Space.user.avart */
	private String headPic;

	private Date visitDate;

	/** 访问者名字Space.user.name */
	private String spaceName;

	@Column(name = "space_id")
	public Long getSpaceId() {
		return spaceId;
	}

	public void setSpaceId(Long spaceId) {
		this.spaceId = spaceId;
	}

	@Column(name = "visit_id")
	public Long getVisitId() {
		return visitId;
	}

	public void setVisitId(Long visitId) {
		this.visitId = visitId;
	}

	@Column(name = "head_pic")
	public String getHeadPic() {
		return headPic;
	}

	public void setHeadPic(String headPic) {
		this.headPic = headPic;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "visit_date")
	public Date getVisitDate() {
		return visitDate;
	}

	public void setVisitDate(Date visitDate) {
		this.visitDate = visitDate;
	}

	@Column(name = "space_name")
	public String getSpaceName() {
		return spaceName;
	}

	public void setSpaceName(String spaceName) {
		this.spaceName = spaceName;
	}

}
